﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xant.FlowEngine.Interface;

namespace Xant.OrganzService
{
    public class StaffMember : IStaffMember
    {
        internal Guid id;

        public object Id
        {
            get { return id; }
            set { id = (Guid)value; }
        }


        public IOrganization Organization { get; set; }

        public IOrganization BelongCorporation
        {
            get { return Organization.Corporation; }
        }

        public IOrganization BelongDepartment
        {
            get
            {
                return Organization.Type == OrganizType.Department ? Organization : null;
            }
        }

        public IStaff Staff { get; set; }

        public IPosition Position { get; set; }

        /// <summary>
        /// 职级
        /// </summary>
        //public IPostRank Rank { get; set; }//暂不实现

        public bool IsMainPosition { get; set; }

        public int Priority { get; set; }


    }

}
